package com.scsj.supermarket.base;

import android.content.Context;

import com.scsj.supermarket.bean.RegisterBean;

import dkmvp.net.ResponseCallback;
import okhttp3.RequestBody;
import rx.Subscription;

/**
 * 注册
 */

public class RegisterBase {

    public interface IView {

        void showSuccessMsg(String s, RegisterBean registerBean);

        void showErrorMsg(String s);
    }

    public interface IPresenter {

        void deliverData(Context context , RequestBody requestBody);
    }

    public interface IModel {

        Subscription getData(Context context ,RequestBody requestBody, ResponseCallback<RegisterBean> callback);
    }
}
